package com.dj.dormitory.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dj.dormitory.entity.Student;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dj.dormitory.entity.req.StuReq;
import com.dj.dormitory.entity.vo.StuVo;
import javafx.scene.control.Pagination;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author DJ同学
 * @since 2021-01-24
 */
public interface StudentMapper extends BaseMapper<Student> {

    List<StuVo> getAllStu();

    List<StuVo> getStuPageList(Page page, @Param("stuReq")StuReq stuReq);


    StuVo getOneByUserId(@Param("userId") Integer userId);
}
